<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="stylesheet.css" rel="stylesheet" />
    <link rel="icon" href="/favicon.ico">
    <title>MCSocial</title>
    <style>

    </style>
</head>

<body>
    <!-- Navigation -->
    <nav class="navbar">
        <a href="index.html" class="logo">🎮 MCSocial</a>
        <ul id="navlinks" class="nav-links">
            <li><a href="index.html">Home</a></li>
            <li><a href="createPost.html" class="active">Create</a></li>
        </ul>
    </nav>

    <script src="globals.js">
    </script>
    <script src="createPost.js">
    </script>

    <div class="main-content">
        <!-- Create Post Page -->
        <div id="create" class="page">
            <h1>✨ Create New Post</h1>
            <form>
                <div class="form-group">
                    <label for="postContent">What's your latest creation?</label>
                    <textarea id="postContent" rows="5"
                        placeholder="Share details about your Minecraft build, the inspiration behind it, challenges you faced, or tips for other builders..."></textarea>
                </div>
                <div class="form-group">
                    <label for="postFile">Upload Screenshot/Video</label>
                    <input type="file" id="postFile" accept="image/*,video/*">
                    <small style="color: #666; display: block; margin-top: 0.5rem;">
                        MCSocial supports images and videos up to 10 MB
                    </small>
                </div>
                <p style="color: red;" id="loadingMessage"></p>
                <div style="display: flex; gap: 1rem;">
                    <button type="button" class="btn" onclick="createPost()">Share Creation</button>
                    <button type="button" class="btn btn-secondary">Cancel</button>
                </div>
            </form>
        </div>
    </div>
</body>

</html>